﻿<?php
/**
 * @authors alex (20779512@qq.com)
 * @date    2014-03-24 16:49:33
 * @version 1.0
 */

header("Content-type: text/html; charset=utf-8");
set_time_limit(1800);

// 说明：用 stripslashes 还原 addslashes 转义后的数据
if (get_magic_quotes_gpc()) {
	function stripslashes_deep($value){
		$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); 
		return $value; 		
	}
	$_POST = array_map('stripslashes_deep', $_POST);
	$_GET = array_map('stripslashes_deep', $_GET);
	$_COOKIE = array_map('stripslashes_deep', $_COOKIE); 
}

if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');
define('APP_DEBUG',true); 				//开启调试模式
define('APP_NAME', 'APP');			//应用名称
define('RUNTIME_PATH','./runtime/');	//缓存文件目录
define('TMPL_PATH','./tpl/');				//模板目录
define('APP_PATH','./app/');			//应用目录
define('CORE','./_core');				//框架目录

require(CORE.'/index.php');
?>